@echo off
setlocal

:: 设置 Redis 主节点和从节点的目录
set MASTER_DIR=.\master
set SLAVE1_DIR=.\slave1
set SLAVE2_DIR=.\slave2

:: 关闭 Redis 主节点
echo Stopping Redis Master Node...
taskkill /IM redis-server.exe /F

:: 关闭 Redis 从节点 1
echo Stopping Redis Slave Node 1...
taskkill /IM redis-server.exe /F

:: 关闭 Redis 从节点 2
echo Stopping Redis Slave Node 2...
taskkill /IM redis-server.exe /F

:: 关闭 Redis 客户端
echo Stopping Redis Clients...
taskkill /IM redis-cli.exe /F

echo Redis shutdown complete!

endlocal
pause
